
<!DOCTYPE html>
<html lang="en-us">
<head>
  
  <meta charset="UTF-8" />
  <meta name="description" content="树莓派4B安装raspi-firmware，运行 raspi-config。" />
  <title>
    树莓派4B-安装raspi-firmware | DenysG的个人博客
  </title>
  
  <meta name="viewport" content="width=device-width,user-scalable=no,maximum-scale=1,initial-scale=1">
  
  <link rel="canonical" href="https://48474.net/post/raspi-install_raspi-firmware/"/>
  <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
  
  <link rel="stylesheet" href="/css/sanitize.css">
  <link rel="stylesheet" href="/css/responsive.css">
  <link rel="stylesheet" href="/css/highlight_monokai.css">
  <link rel="stylesheet" href="/css/theme.css">
  <link rel="stylesheet" href="/css/custom.css">
  
  
  <link href="https://48474.net//index.xml" rel="alternate" type="application/rss+xml" title="DenysG的个人博客" />
  <link href="https://48474.net//index.xml" rel="feed" type="application/rss+xml" title="DenysG的个人博客" />

  
  

</head>



<body>
<div class="container">
  
  <header role="banner">
    <div class="row gutters">
      <div id="site-title" class="col span_6">
        <h1><a href="https://48474.net/">DenysG的个人博客</a></h1>
        <h2>我必须承认，幸运喜欢照顾勇敢的人。---- 达尔文</h2>
      </div>
      <div id="social" class="col span_6">
        <ul>
          
          
          <li><a href="https://github.com/cnphpbb/" target="_blank">GitHub</a></li>
          
        </ul>
      </div>
    </div>
  </header>


  
  <main id="single" role="main">
    <div class="article-header">
      <h1>树莓派4B-安装raspi-firmware</h1>
      <div class="meta">
        Nov 15, 2022 &nbsp;
        
          #<a href="/tags/raspi">RasPi</a>&nbsp;
        
          #<a href="/tags/guide">guide</a>&nbsp;
        
          #<a href="/tags/i2c">I2C</a>&nbsp;
        
          #<a href="/tags/%E5%BC%80%E6%BA%90">开源</a>&nbsp;
        
          #<a href="/tags/guide">guide</a>&nbsp;
        
          #<a href="/tags/raspberrypi">raspberrypi</a>&nbsp;
        
      </div>
    </div>
    <article>
      <blockquote>
<p>网友问我，如何在服务器版本安装 <code>raspi-config</code> 这个GUI工具。 就整理了这个教程出来。</p>
</blockquote>
<ul>
<li>
<p><strong>step 1</strong> <br>
新增一个 apt 的 sources 文件</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl">$ mkdir -p /etc/apt/keyrings
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">$ curl -fsSL https://mirrors.tuna.tsinghua.edu.cn/raspberrypi/raspberrypi.gpg.key <span class="p">|</span> gpg --dearmor -o /etc/apt/keyrings/raspi.gpg
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">$ <span class="nb">echo</span> <span class="se">\
</span></span></span><span class="line"><span class="cl"><span class="se"></span>  <span class="s2">&#34;deb [arch=</span><span class="k">$(</span>dpkg --print-architecture<span class="k">)</span><span class="s2"> signed-by=/etc/apt/keyrings/raspi.gpg] https://mirrors.tuna.tsinghua.edu.cn/raspberrypi \
</span></span></span><span class="line"><span class="cl"><span class="s2">  </span><span class="k">$(</span>lsb_release -cs<span class="k">)</span><span class="s2"> stable&#34;</span> <span class="p">|</span> tee /etc/apt/sources.list.d/raspi.gpg &gt; /dev/null
</span></span></code></pre></div><p>这里使用的 清华的源 <code>https://mirrors.tuna.tsinghua.edu.cn/raspberrypi</code></p>
<p>以前的 app-key 的指令方法，现在已经升级了哦。会不成功。</p>
</li>
<li>
<p><strong>step 2</strong></p>
<p>安装 <code>raspi-firmware</code> 包。</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl">$ apt update
</span></span><span class="line"><span class="cl">$ apt install raspi-firmware
</span></span></code></pre></div></li>
<li>
<p><strong>step 3</strong></p>
<p>执行指令 <code>raspi-config</code>  就会出现 GUI 界面了。</p>
<p><img src="https://hks3.7y2.org/myimg02/images/202211151848749.png" alt=""></p>
</li>
</ul>

      
      
      
    </article>
    


  </main>
  
  <nav class="pagination-single">
    
      <span class="previous">&larr; <a href="https://48474.net/post/raspi-wiringpi/" rel="prev">树莓派4B-WiringPi库</a></span>
    
    
  </nav>


  
  <footer role="contentinfo">
    <div style="text-align:center;">
      
      © 2020 135Get_Team. All rights reserved.
    </div>
  </footer>


</div>

<script src="/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>



</body>
</html>

